package com.cskaoyan.relation;

import java.util.Collection;

/**
 * @author : qj
 * @since: 2022/10/13  18:55
 */
public class SecurityManager {
    Authenticator authenticator = new Authenticator();
    Authorizer authorizer = new Authorizer();
    Collection<Realm> realms;
    SessionManager sessionManager;

    public void setRealms(Collection<Realm> realms){
        this.realms = realms;
        authenticator.setRealms(realms);
        authorizer.setRealms(realms);
    }

    public void setAuthenticator(Authenticator authenticator) {
        this.authenticator = authenticator;
    }

    public void setAuthorizer(Authorizer authorizer) {
        this.authorizer = authorizer;
    }
}
